#ifndef COYPACKETLISTENER_H
#define COYPACKETLISTENER_H


#include "osc/OscPacketListener.h"
#include "ExtOSCThread.h"
class ExtOSCThread;

class CoYPacketListener : public osc::OscPacketListener
{
public:
    CoYPacketListener(ExtOSCThread* oscThread);
protected:
    virtual void ProcessMessage( const osc::ReceivedMessage& m,
                                const IpEndpointName& remoteEndpoint );
private:
    int serverPort;
    ExtOSCThread* oscThread;

    /*
signals:
    void addSynth(string objectID, string synthName, float x,float y, float param1, float param2);
    void removeSynth(string objectID);
    void updateSynthPositionX(string mapKey, int xPos);
    void updateSynthPositionY(string mapKey, int yPos);
    void updateSynthParam1(string mapKey, float param1);
    void updateSynthParam2(string mapKey, float param2);
    void updateSynthSelected(string mapKey, string userName);
    void synthNameSync(string mapKey, string synthName);
    void receiveChat(string chat);
    */
};

#endif // COYPACKETLISTENER_H
